package pl.edu.pw.perg.compinfodb.entities;

import java.util.Date;

public class HistoryItem {

	private Long id;
	private String author;
	private Date creationDate;
	private String description;

	public HistoryItem(){
		
	}
	
	public boolean validate(){
		boolean valid = true;
		if(description == null || description.equals(""))
			valid = false;
		if(author == null || author.equals(""))
			valid = false;
		if(creationDate == null)
			valid = false;
		return valid;
	}
	
	public HistoryItem(Date creationDate){
		this.creationDate = creationDate;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

}